package com.lehecai.core.search.api.impl;

import net.sf.json.JSONArray;

import java.util.List;

/**
 * Select请求的响应body
 * User: sunshow
 * Date: 13-4-1
 * Time: 上午9:18
 */
public class SelectSearchApiResponseBody extends AbstractSearchApiResponseBody {

    /**
     * 符合条件的记录总数(不同于本次返回的记录数)
     */
    private int total;

    private List<JSONArray> valueList;

    public SelectSearchApiResponseBody(List<JSONArray> valueList, int total) {
        this.valueList = valueList;
        this.total = total;
    }

    public List<JSONArray> getValueList() {
        return valueList;
    }

    public int getTotal() {
        return total;
    }

    public int getSize() {
        return this.valueList.size();
    }
}
